from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', 'ui.views.home', name='home'),
    url(r'^$', 'ui.views.help', name='help'),
    url(r'^register/$', 'ui.views.register', name='register'),
    url(r'^login/$', 'django.contrib.auth.views.login', {
    'template_name': 'login.html'}, name='login'),
    url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'),
    
    url(r'^task_list/all$', 'tasks.views.tasks', name='all-tasks'),
    url(r'^task_list/(\d+)$', 'tasks.views.tasks', name='task-list'),
    url(r'^period$', 'tasks.views.period', name='period'),
    url(r'^report/(\d+)$', 'tasks.views.report', name='report'),
    url(r'^burning_chart/(\d+)$', 'tasks.views.burning_chart', name='burning-chart'),
    url(r'^period/(\d+)$', 'tasks.views.burning_chart', name='period'),
    
    url(r'^admin/', include(admin.site.urls)),
)
